From: Keir Fraser Date: Thu, 3 Apr 2008 10:24:20 +0000 (+0100) Subject: VT-d: Enable queued invalidation on all vt-d engines before enabling X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14231^2~84 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a0c04c2c3d1c640098f572f42d03d46e24012c23;p=xen.git VT-d: Enable queued invalidation on all vt-d engines before enabling interrupt remapping. Signed-off-by: Allen Kay --- diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index 968e25d7f5..41fc90d6ec 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1897,7 +1897,11 @@ static int init_vtd2_hw(void) if ( qinval_setup(iommu) != 0 ) dprintk(XENLOG_ERR VTDPREFIX, "Queued Invalidation hardware not found\n"); + } + for_each_drhd_unit ( drhd ) + { + iommu = drhd->iommu; if ( intremap_setup(iommu) != 0 ) dprintk(XENLOG_ERR VTDPREFIX, "Interrupt Remapping hardware not found\n");